package com.goldcn.sys.dao;

import com.goldcn.sys.model.UserInfo;
import com.goldcn.sys.model.UserLogin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long userID);

    int insert(Map<String, Object> record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Long userID);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    int selectAllNum(@Param(value = "condition") String condition);

    List<Map<String, Object>> selectAll(@Param(value = "startRow") int startRow,
                                        @Param(value = "limitRow") int limitRow,
                                        @Param(value = "condition") String condition,
                                        @Param(value = "sortField") String sortField,
                                        @Param(value = "sortOrder") String sortOrder);


    void delEmployee(Map map);

    void searchOrder(Map map);

    void isAdmin(Map map);

    Map<String, Object> searchUserOrg(Long userID);

    List getOrderListByUserId(Map para);

    List getPartnerListByUserId(Map para);

    List<Map<String, Object>> selectAllOrderInfo(Map map);

    List<Map<String, Object>> selectAllGoods(Map map);

    Map<String, String> getOrderInfoByOrderId(Map para);

    List getOrderItemByOrderId(Map para);

    List<Map<String, Object>> getPointList(Map map);

    List<Map<String, Object>> getPointDetailsByUserId(Map map);

    List<UserLogin> getLoginListByUserID(Long userID);

    int updateUserLoginPwd(UserLogin record);

    List<Map<String, Object>> getJOBList(Map map);

    List<Long> getOrderIdsByCompanyID(Map map);

    void delGoodsByCompanyID(Map map);

    void delGoodsByGoodsID(Map map);

    int delUserInfo(Map map);

    int delOrganizational(Long companyID);

    List<Long> selectAllFilterSuperAdmin(Long companyID);

}